//
//  UserSettingTableViewCell.m
//  tianjin
//
//  Created by 鞠超 on 16/8/8.
//  Copyright © 2016年 jc. All rights reserved.
//

#import "UserSettingTableViewCell.h"

@implementation UserSettingTableViewCell

- (instancetype )initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if(self)
    {
        [self p_setupView];
    }
    
    return self;
}

- (void )p_setupView
{
    //
    self.image = [[UIImageView alloc] init];
    [self.contentView addSubview:self.image];
    
    self.name = [[UILabel alloc] init];
    self.name.font = [UIFont systemFontOfSize:15];
    [self.contentView addSubview:self.name];

    self.image_icon = [[UIImageView alloc] init];
    self.image_icon.image = [UIImage imageNamed:@"youfanhui@2x.png"];
    [self.contentView addSubview:self.image_icon];
}

- (void )layoutSubviews
{
    [super layoutSubviews];
    
    self.image.frame = CGRectMake(10, 15, 20, 20);
    
    self.name.frame = CGRectMake(CGRectGetMaxX(self.image.frame) + 10, 15, 150, 20);
    
    self.image_icon.frame = CGRectMake(SCREEN_WIDTH - 25, 17.5, 10, 15);
}











@end
